package com.shop.mapper;

import com.shop.entity.SysRolePerssion;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface SysRolePerssionMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(SysRolePerssion record);

    int insertSelective(SysRolePerssion record);

    SysRolePerssion selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(SysRolePerssion record);

    int updateByPrimaryKey(SysRolePerssion record);

    Integer deleteByRoleId(@Param("id") Integer id);

   List<Integer> findRolePerssionId(@Param("id") Integer id);

   Integer deleteSysPerssionByPerssionId(@Param("id") Integer id);
}